﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CLEXA.ClientTools.Collections;
using CLEXA.DataContracts;

namespace CLEXA.SurfaceClient.Cache
{
    public interface IDatabaseCache
    {
        int UserId { get; }
        IReadOnlyObservableDictionary<int, DatabaseData> Databases { get; }

        void UpdateDatabase(DatabaseData database);

        void DeleteDatabase(int databaseId);
        int CreateDatabase(int userId, string connectionString);
    }
}
